﻿using DAL;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_StuChoice
    {
        D_StuChoice dal = new DAL.D_StuChoice();

        public List<StuChoice> getList()
        {
            return dal.getList();
        }
        public bool commit(StuChoice model)
        {
            try
            {
                var res = dal.commit(model);
                return res == 1 ? true : false;
            }
            catch
            {
                throw new Tools.Modify_Exception("提交失败！");
            }
        }

        public bool SaveResult(List<StuChoice> sc)
        {
            return dal.saveResult(sc); 
        }
        public StuChoice Select(Models.Student student)
        {
            var m_g = dal.select(student);
            return m_g;
        }
        public List<StuChoice> GetList()
        {
            DAL.D_StuChoice d_stuChoice = new DAL.D_StuChoice();
            return d_stuChoice.GetList();
        }


    }
}
